package cn.qidisoft.edu.hzjt.service.zyc;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.qidisoft.core.common.pagination.Page;
import cn.qidisoft.core.common.pagination.PaginationBean;
import cn.qidisoft.edu.hzjt.model.xb.PartyResponsibilityAttEn;
import cn.qidisoft.edu.hzjt.model.zyc.DeveAmateurSchool;
import cn.qidisoft.edu.hzjt.model.zyc.DeveAmateurSchoolAtt;
import cn.qidisoft.edu.hzjt.model.zyc.DeveAmateurSchoolStudent;

/**
 * 查询业余活动开展列表信息
 * 
 * @param student
 * @param page
 * @return
 */

@Service
@Transactional
public interface IDeveAmateurSchoolService {
	public PaginationBean<DeveAmateurSchool> queryDeveAmateurSchoolPageList(Map<String, Object> qMap,
			Page page);

	public void insert(DeveAmateurSchool data);

	public DeveAmateurSchool queryDeveAmateurSchoolById(Integer dxid);

	public void update(DeveAmateurSchool deveAmateurSchool);

	public List<DeveAmateurSchool> getDASList(DeveAmateurSchool pM2);

	public void deleteByIds(List<Integer> id_List);

	/***
	 * 批量插入附件
	 * 
	 * @param records
	 */
	void batchInsertsFiles(List<PartyResponsibilityAttEn> records);

	/***
	 * 查询附件
	 * 
	 * @param entity
	 * @return
	 */
	List<PartyResponsibilityAttEn> queryFilesList(PartyResponsibilityAttEn entity);

	/**
	 * 删除附件
	 * 
	 * @param entity
	 * @return
	 */
	int deleteAccessory(PartyResponsibilityAttEn entity);

	/**
	 * 根据Id查地址
	 * 
	 * @param fileId
	 * @return
	 */
	public DeveAmateurSchoolAtt selPartyAmateurSchoolAttById(DeveAmateurSchoolAtt deveAmateurSchoolAtt);
    /**
     * 根据学生id获取获取业余党校id
     */
	public DeveAmateurSchoolStudent getParendById(Integer xsid);

}
